Skip to content

refactor: rename status#217

Merged
ktro2828 merged 1 commit into
mainfrom
refactor/sanity/status
Nov 14, 2025
Merged

refactor: rename status#217
ktro2828 merged 1 commit into
mainfrom
refactor/sanity/status

Conversation

@ktro2828

Copy link
Copy Markdown
Collaborator

What

This pull request standardizes the terminology used for reporting rule outcomes in the sanity checking module, changing from "SUCCESS/FAILURE" to "PASSED/FAILED". It updates both the codebase and documentation to reflect this new terminology, and simplifies the printed summary output. The changes improve clarity and consistency across the code, output, and documentation.

Terminology and Status Standardization

  • Renamed Status.SUCCESS/Status.FAILURE to Status.PASSED/Status.FAILED in t4_devkit/sanity/result.py, and updated all related logic, methods, and assertions to use the new terms (is_successis_passed, is_failureis_failed, etc.). [1] [2] [3] [4] [5]
  • Updated the CLI exit condition in t4_devkit/cli/sanity.py to use is_passed instead of is_success.

Summary Output and Documentation Updates

  • Simplified and updated the printed summary table in t4_devkit/sanity/result.py to use the new "Passed", "Failed", "Skipped", and "Warnings" columns, removing the old "Status", "Rules", and "Success/Failures/Skips" columns.
  • Updated the CLI documentation in docs/cli/t4sanity.md to show the new summary table format and changed the status values in the JSON output example from "SUCCESS/FAILURE" to "PASSED/FAILED". [1] [2]

Copilot AI review requested due to automatic review settings November 14, 2025 03:23
@github-actions github-actions Bot added documentation Improvements or additions to documentation refactor Refactoring code or increasing performance labels Nov 14, 2025
@github-actions

github-actions Bot commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

☂️ Python Coverage

current status: ❌

Overall Coverage

Lines Covered Coverage Threshold Status
3892 2125 55% 50% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
t4_devkit/sanity/result.py 0% 🔴
TOTAL 0% 🔴

updated for commit: 7dfbebb by action🐍

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR standardizes the terminology for sanity check outcomes by replacing "SUCCESS/FAILURE" with "PASSED/FAILED" throughout the codebase and documentation. The changes improve consistency and clarity while simplifying the summary output format.

Key Changes:

  • Renamed Status enum values and updated all related methods (is_successis_passed, is_failureis_failed)
  • Simplified the summary table output by removing redundant columns and updating column names
  • Updated documentation to reflect the new terminology and table format

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
t4_devkit/sanity/result.py Renamed Status enum values, updated method names and docstrings, simplified summary table output
t4_devkit/cli/sanity.py Updated CLI exit condition to use new is_passed method
docs/cli/t4sanity.md Updated documentation with new summary table format and JSON status values

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread t4_devkit/sanity/result.py Outdated
Comment thread t4_devkit/sanity/result.py Outdated
Comment thread docs/cli/t4sanity.md Outdated

@shekharhimanshu shekharhimanshu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you! 💯

Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
@ktro2828 ktro2828 force-pushed the refactor/sanity/status branch from 27a4a66 to 7dfbebb Compare November 14, 2025 03:49
@ktro2828 ktro2828 merged commit ca63d6c into main Nov 14, 2025
4 of 5 checks passed
@ktro2828 ktro2828 deleted the refactor/sanity/status branch November 14, 2025 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation refactor Refactoring code or increasing performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants